feature: hide/show class attributes #658
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a Draft PR, the purpose of it is to work as a starting point, the code here is nowhere near being production-ready
Given the progress that was made in the area by vscode-inline-fold and vscode-explicit-folding, I wanted to make this Draft PR to provide an approach of implementing hiding and showing class attributes in the tailwind extension. This hopefully works as a starting point for the feature as well as to reopen the discussion on the topic.
Hoping to reopen issue #313 to work as a place for the conceptual discussion while keeping it here only for implementation details.
Disclaimer: Many elements of this PR were taken from the extensions above with heavy modifications to make them work with the rest of the extension.
Issues
Demo
Demo.mov
Features
tailwindCSS.classAttributes
extension setting.tailwindCSS.experimental.foldClassAttributes
settings value to disable the feature.TODO
tailwindCSS.includeLanguages
setting.extension.ts
).